package com.nuoniu.sibanyun.controller.system;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.service.ISysTradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小啊刚
 * @since 2021-02-06
 */
@RestController
@RequestMapping("/sys/trade")
@Api(value="所属行业 ", tags={"所属行业"})
public class SysTradeController extends BaseController {

    @Autowired
    private ISysTradeService sysTradeService;

    @GetMapping("/list")
    @ApiOperation(value = "获取全部行业" )
    public HttpResult list(){
        return HttpResult.ok(sysTradeService.listAll());
    }
}
